<template>
    <el-table 
        border
        :data="tableList"
        :header-cell-style='{"text-align":"center"}'
        :cell-style="{'text-align':'center'}"
        >
        <el-table-column v-for="obj in tableHeader" :key="obj.id" label="obj.label" ></el-table-column>
    </el-table>
</template>

<script>
export default {
    name: "myTable",
    props:{
        tableList:{ // table数据
            type: Array,
            required: true
        },
        tableHeader:{
            type: Array,
            required: true
        }
    }
}
</script>

<style>

</style>